﻿@using FutureApp.Configuration;
@model FutureApp.Web.Models.Component.UserInfoViewModel
<li class="dropdown dropdown-user">
    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
        <i class="fa fa-user"></i>
        <span class="username username-hide-on-mobile">
            @{var curUser = this.Model.LoginInformations.User; }
            @curUser.Name
        </span>
        <i class="fa fa-angle-down"></i>
    </a>
    <ul class="dropdown-menu dropdown-menu-default">
        @if (SettingsManager.GetAppBooleanSetting("website:Debug"))
        {
            <li class="hidden-xs">
                <a href="~/swagger" target="_blank" data-index="0">
                    <i class="fa fa-connectdevelop"></i>
                    @L("ApiSdk")
                </a>
            </li>
        }
        <li>
            <a href="@Url.Action("Logout", "Account")">
                <i class="icon-key"></i>
                @L("Logout")
            </a>
        </li>
    </ul>
</li>